﻿@model GameCode.Models.Home.LayoutModel
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" href="../../Content/themes/home/site.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../../Scripts/iscroll.js"></script>
    <script type="text/javascript" src="../../Scripts/layout.js"></script>
    <script type="text/javascript" src="../../Scripts/slides.min.jquery.js"></script>
    <script type="text/javascript" src="../../Scripts/DD_belatedPNG_0.0.8a-min.js"></script>
</head>
<style>
    body
    {
        behavior: url("/Content/themes/home/csshover3.htc");
    }
</style>
<script type="text/javascript">
    $(document).ready(function () {

        DD_belatedPNG.fix('.android_download, .iphone_download, .link_wrapper, .download_for_system, .download_for_code, .download_android, .download_iphone, .code_content_left, .article');

        var link_contain_width = 0;
        $("#link_wrapper_contain li").each(function (index) {
            link_contain_width += $(this).outerWidth();
        });
        $("#link_wrapper_contain").width(link_contain_width);

        var move_to = link_contain_width - $("#link_wrapper").width();
        var link_flag = false;

        var start_link = function (speed) {

            var target = move_to;

            if (link_flag)
                target = 0;

            $("#link_wrapper_contain").animate({ "left": -target }, speed, "linear", function () {
                link_flag = !link_flag;
                start_link(speed);
            });
        };

        start_link(10000);
    });
</script>
<body>
    <div class="header">
        <div class="align_center">
            <div class="header_nav">
                <ul>
                    <li><a href="/Home">首页</a></li>
                    <li><a href="/Home/Product">产品</a></li>
                    <li><a href="/Home/Download">下载</a></li>
                    <li><a href="/Home/Teamwork">商务合作</a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
            <div class="header_logo">
                <img class="logo" src="../../Content/image/website_logo.png" alt="第一投资" />
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="content">
        <div class="align_center">
            @RenderBody()

        <div class="link_wrapper">
        <div class="div_title">
            友情链接</div>
        <div class="clear">
        </div>
        <div id="link_wrapper">
            <div id="link_wrapper_contain">
                <ul>
                @foreach (var friendLink in Model.FriendLinkList)
                {
                    if (string.IsNullOrEmpty(friendLink.Link))
                    {
                    <li>
                        <img src="@friendLink.ImageLink" />
                    </li>
                    }
                    else
                    { 
                    <li><a href="@friendLink.Link">
                        <img src="@friendLink.ImageLink" />
                    </a></li>
                    }
                }
                </ul>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
        </div>
    </div>
    
    <div class="footer">
        <div class="align_center">
            @Html.Raw(Model.Footer)
        </div>
    </div>
</body>
</html>
